//
//  ArrayList.h
//  algorithmDemo
//
//  Created by 李文深 on 16/7/10.
//  Copyright © 2016年 30pay. All rights reserved.
//

#ifndef ArrayList_h
#define ArrayList_h

#include "Const.h"

#define MAXSIZE 20

typedef int ElemType;

typedef struct
{
    ElemType data[MAXSIZE];
    int length;    // 线性表当前长度
} SqList;


Status getElem(SqList l, int i, ElemType *e);

Status insertElem(SqList *l, ElemType e ,int index);

Status deleteElement(SqList *l, int index);

void printArray(SqList l);


#endif
